package com.jochen.core.components

import com.artemis.Component
import com.badlogic.gdx.math.Vector2

class Transform: Component(){
    val position: Vector2 = Vector2()
    var z: Int = 0
    val size: Vector2 = Vector2()
    val scaling: Vector2 = Vector2()
    var rotationDeg: Float = 0f
    var sortOffsetY: Float = 0f
    
    /*override fun compareTo(other: Transform){
        if(z != other.z){
             return z.compareTo(other.z)
        }
        val aY = this.position.y + sortOffsetY
        val bY = other.position.y + sortOffsetY
        if(aY != bY){
            return bY.compareTo(aY)
        }
        return this.position.x.compareTo(other.position.x)
    }*/
}